package com.skt.manage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.skt.manage.mapper.PatientExamReportsMapper;
import com.skt.manage.domain.PatientExamReports;
import com.skt.manage.service.IPatientExamReportsService;

/**
 * 体检报告Service业务层处理
 * 
 * @author ffbaby
 * @date 2025-04-14
 */
@Service
public class PatientExamReportsServiceImpl implements IPatientExamReportsService 
{
    @Autowired
    private PatientExamReportsMapper patientExamReportsMapper;

    /**
     * 查询体检报告
     * 
     * @param reportId 体检报告主键
     * @return 体检报告
     */
    @Override
    public PatientExamReports selectPatientExamReportsByReportId(Long reportId)
    {
        return patientExamReportsMapper.selectPatientExamReportsByReportId(reportId);
    }

    /**
     * 查询体检报告列表
     * 
     * @param patientExamReports 体检报告
     * @return 体检报告
     */
    @Override
    public List<PatientExamReports> selectPatientExamReportsList(PatientExamReports patientExamReports)
    {
        return patientExamReportsMapper.selectPatientExamReportsList(patientExamReports);
    }

    /**
     * 新增体检报告
     * 
     * @param patientExamReports 体检报告
     * @return 结果
     */
    @Override
    public int insertPatientExamReports(PatientExamReports patientExamReports)
    {
        return patientExamReportsMapper.insertPatientExamReports(patientExamReports);
    }

    /**
     * 修改体检报告
     * 
     * @param patientExamReports 体检报告
     * @return 结果
     */
    @Override
    public int updatePatientExamReports(PatientExamReports patientExamReports)
    {
        return patientExamReportsMapper.updatePatientExamReports(patientExamReports);
    }

    /**
     * 批量删除体检报告
     * 
     * @param reportIds 需要删除的体检报告主键
     * @return 结果
     */
    @Override
    public int deletePatientExamReportsByReportIds(Long[] reportIds)
    {
        return patientExamReportsMapper.deletePatientExamReportsByReportIds(reportIds);
    }

    /**
     * 删除体检报告信息
     * 
     * @param reportId 体检报告主键
     * @return 结果
     */
    @Override
    public int deletePatientExamReportsByReportId(Long reportId)
    {
        return patientExamReportsMapper.deletePatientExamReportsByReportId(reportId);
    }
}
